package com.auto.producta.config;


import com.auto.base.config.BaseConfig;
import com.auto.base.factory.YamlPropertySourceFactory;
import com.auto.producta.model.AutoConfigureDto;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


@PropertySource(factory = YamlPropertySourceFactory.class, value = "classpath:auto-test-params.yaml")
@Configuration
@SuppressWarnings("unused")
public class AutoConfig extends BaseConfig {

    /*注入配置,用的时候直接get即可*/
    @Bean
    public AutoConfigureDto getParams() {
        return new AutoConfigureDto();
    }
}
